﻿<img src="http://img.baidu.com/img/logo-zhidao.gif" id="img" style="width:137px;height:46px;">
<script>
    window.onload = auto();
    function auto(){
        var im = document.getElementById("img");
        var w = parseInt(im.style.width);
        var h = parseInt(im.style.height);
        if(w>=200||h>=50) {
            return true;
        }else{
            w+=3;
            h+=1;
            im.style.width = w+"px";
            im.style.height = h+"px";
            setTimeout(function(){auto()},100);
        }
    }
</script>